TimelineEventHandler Class Reference

#include <TimelineEventHandler.h>

List of all members.

Public Member Functions

 TimelineEventHandler (osg::ref_ptr< osgProducer::Viewer > viewer, osg::ref_ptr< osg::Group > quadGroup)
 ~TimelineEventHandler ()
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
void select (const osgGA::GUIEventAdapter &ea)
void changeStateRed ()
void changeStateWhite ()
void changeStateGrey ()
void paintWhiteAll ()
void paintGrey ()

Private Attributes

osg::ref_ptr< osgProducer::Viewer > _viewer
osg::ref_ptr< osg::Group > _quadGroup
osg::StateSet * stateset
osg::StateSet * statesetG
osg::StateSet * statesetOld
int isBeforeHit


Detailed Description

TimelineEventHandler class inhereted from osgGA::GUIEventHandler. defines the interfaces to handle inputs to the timeline window.


Constructor & Destructor Documentation

TimelineEventHandler::TimelineEventHandler (  osg::ref_ptr< osgProducer::Viewer >  viewer,
osg::ref_ptr< osg::Group >  quadGroup
)  [inline]
 

A constructor. initializes private members

TimelineEventHandler::~TimelineEventHandler (   )  [inline]
 

A destructor.


Member Function Documentation

void TimelineEventHandler::changeStateGrey (   ) 
 

a normal member. this function identifies the non-selected frames, change color states of the frames as grey

void TimelineEventHandler::changeStateRed (   ) 
 

a normal member. this function identifies the selected frame, change color state of the frame that is clicked as red

void TimelineEventHandler::changeStateWhite (   ) 
 

a normal member. this function identifies the non-selected frames, change color states of the frames as white

bool TimelineEventHandler::handle (  const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us
) 
 

a normal member taking two arguments and returning bool.

Parameters:
ea is a constant osgGA::GUIEventAdapter& argument.
us is a constant osgGA::GUIActionAdapter&.
Returns:
true if the event is move, drag or push
See also:
select(const osgGA::GUIEventAdapter& ea) this function handles the mouse events of timeline window calls select if the event is push.

void TimelineEventHandler::paintGrey (   ) 
 

a normal member. this function set material properties of osg::Groups

void TimelineEventHandler::paintWhiteAll (   ) 
 

a normal member. this function set material properties of osg::Groups

void TimelineEventHandler::select (  const osgGA::GUIEventAdapter &  ea  ) 
 

a normal member taking one argument and returning none.

Parameters:
ea is a constant osgGA::GUIEventAdapter& argument. this function identifies the selected frame, change color states of the frames accordingly calls osgWindows clickedOnAFrame function.


Member Data Documentation

osg::ref_ptr<osg::Group> TimelineEventHandler::_quadGroup [private]
 

osg::ref_ptr<osgProducer::Viewer> TimelineEventHandler::_viewer [private]
 

int TimelineEventHandler::isBeforeHit [private]
 

osg::StateSet* TimelineEventHandler::stateset [private]
 

osg::StateSet* TimelineEventHandler::statesetG [private]
 

osg::StateSet* TimelineEventHandler::statesetOld [private]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:01 2006 by  doxygen 1.4.6-NO